<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>书籍管理</title>
<link href="__APP__/Public/style/base.css" rel="stylesheet" type="text/css" />
<link href="__APP__/Public/style/table_list.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__APP__/Public/script/table_list.js"></script>
<script type="text/javascript" src="__APP__/Public/script/common.js"></script>
<script type="text/javascript">
function del(id){
	document.getElementById("id").value = id;
	document.getElementById("listForm").action = "__URL__/delete";
	document.getElementById("listForm").submit();
}
function delAll(){
	if(!confirm('确认删除吗？')){
		return;
	}
	document.getElementById("listForm").action = "__URL__/delete";
	document.getElementById("listForm").submit();
}
function edit(id){
	document.getElementById("id").value = id;
	document.getElementById("listForm").action = "__URL__/edit";
	document.getElementById("listForm").submit();
}
</script>
</head>

<body>
<form action="__URL__/add" method="post" name="listForm" id="listForm">
<input type="hidden" id="id" name="id" />"
<table width="100%"  border="0" cellspacing="1" cellpadding="0">
	<tr id="TH" style="background-color:#7DB8C7">
		<td>选择</td>
		<td>序号</td>
		<td>分类名称</td>
		<td>操作</td>
	</tr>
	<iterate name="list" id="type" key="k">
		<tr class="light" onmouseover="onColor(this,1);" onmouseout="offColor(this,1);" onclick="onColor(this,1);">
			<td class="tdstyle text-center" style="height:25px;width:3%"><input type="checkbox" name="idChk[]" value="{$type.id}" /></td>
			<td class="tdstyle text-center" style="height:25px;width:7%">{$type.id}</td>
			<td class="tdstyle" style="height:25px;width:62%">{$type.title}</td>
			<td class="tdstyle text-center" style="height:25px;width:13%">
				<a href="javascript:del({$type.id})">删除&nbsp;&nbsp;
				<a href="javascript:edit({$type.id});">编辑</a>
			</td>
		</tr>
	</iterate>
	<tr class="light" onmouseover="onColor(this,1);" onmouseout="offColor(this,1);" onclick="onColor(this,1);">
		<td class="tdstyle text-left" colspan="5" style="height:25px">
			<input type="button" class="btn_2k3" onclick="javascript:selectAll('idChk[]');" value="全选" />&nbsp;
			<input type="button" class="btn_2k3" onclick="javascript:cancelAll('idChk[]');" value="取消" />&nbsp;
			<input type="button" class="btn_2k3" onclick="javascript:delAll();" value="删除" />&nbsp;
			<input type="button" class="btn_2k3" onclick="javascript:audit();" value="审核通过" />&nbsp;
			<input type="button" class="btn_2k3" onclick="javascript:document.getElementById('listForm').submit();" value="添加" />&nbsp;
		</td>
	</tr>
</table>
</form>

</body>
</html>